﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace YXShop.Web.article
{
    public partial class office : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Response.Write(GetCountent());
            }
        }

        public string GetCountent()
        {
            YXShop.BLL.SystemInfo.Article bll = new YXShop.BLL.SystemInfo.Article();
            string aid = ChangeHope.WebPage.PageRequest.GetQueryString("aid");
            YXShop.Model.SystemInfo.Article model = bll.GetModel(Convert.ToInt32(aid));
            string test = YXShop.TemplateAction.Common.YXShop_PageContent("office");
            if(model!=null)
            {
                if (test.IndexOf("[#navigation#]")>-1)
                {
                    test = test.Replace("[#navigation#]", model.Title.ToString());
                }
            }
            return test;
        }
    }
}
